import logging
import yagmail
# 日志
def log_set():
    logging.basicConfig(level=logging.DEBUG,format='%(name)s-%(levelno)s-%(levelname)s',filename='log.txt')
# 邮件
def send_email(a):
    email=yagmail.SMTP(user='1125323288@qq.com',password='awvatgvhszvjfedf',host='smtp.qq.com')
    email.send(to='1125323288@qq.com',subject='月考',contents='11-10',attachments=a)










